package com.b2s.scrumblr.kb.core;

import com.b2s.scrumblr.kb.core.util.CommonsUtil;
import com.b2s.scrumblr.kb.core.util.ReflectUtil;
import org.springframework.cache.interceptor.KeyGenerator;

import java.lang.reflect.Method;

/**
 * Created by Administrator on 2016/8/29.
 */
public class CustomKeyGenerator implements KeyGenerator {

    public Object generate(Object target, Method method, Object... params) {
        return CommonsUtil.getCacheKey(target.getClass(), params);
    }
}
